package com.myarray;

import java.sql.SQLOutput;

public class TestArray1 {


    public static void main(String[] args) {
        int[] arr = {11,22,33,44,55};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);     //遍历arr数组中的value
            sum += arr[i];
        }
        System.out.println(sum);            //arr[i].sout打印数组           sout.v
    }

}
